<?php 
	$linkImg = FILES_URL.'/users/img100x100/' ;
	$linkImg45 = FILES_URL.'/users/img45x45/' ;
	$infoUser  = $this->infoUser ;
	$ranking = $this->ranking + 1 ;
	$level = "" ;
	if($infoUser['score'] >=100000){
		$level = "giáo sư" ;
	}
	if($infoUser['score'] <100000 && $infoUser['score']>=10000){
		$level = "phó giáo sư " ;
	}
	if($infoUser['score'] <10000 && $infoUser['score']>=1000){
		$level = "tiến sĩ" ;
	}
	if($infoUser['score'] <1000 && $infoUser['score']>=100){
		$level = "thạc sĩ" ;
	}
	if($infoUser['score'] <1000 && $infoUser['score']>=100){
		$level = "đại học" ;
	}
	if($infoUser['score'] <100){
		$level = "nhập môn" ;
	}
?>
<div class="container">
	<div class="info-main">
		<div class="heder-info">THÔNG TIN NGƯỜI CHƠI</div>
		<div class="content-info">
			<div class="title-info">Thông tin cơ bản</div>
			<img alt="" src="<?php echo $linkImg.'user_1367743702.jpg'?>">
			<div class="score-content-info"> 
				
				<div class="left-score-content-info">
					<ul>
						<li><span class="title-score-content">Điểm kinh nghiệm 	</span> : <span class="value-score-content"> <?php echo $infoUser['score']?>		</span> </li>
						<li><span class="title-score-content">Cấp bậc			</span> : <span class="value-score-content"> <?php echo $level?> </span></li>
						<li><span class="title-score-content">Hạng 				</span> : <span class="value-score-content"> Hạng <?php echo $this->ranking+1 ?> 		</span></li>
					</ul> 
				</div>
				<div class="right-score-content-info">
					<ul>
						<li>Ngày đăng ký: <span class="value-score-content"> <?php echo $infoUser['register_date']?></span></li>
						<li>Email  	:<span class="value-score-content"> <?php echo $infoUser['email']?></span></li>
						<li>Số điện thoại : <span class="value-score-content"> <?php echo $infoUser['phone']?></span></li>
					</ul> 
				</div>		
			</div>
		</div>
		<div class="clear"></div>
		<div class="like-app">
			<div class="title-info">Ứng dụng ưa thích</div>
			<div class="list-online">
				<div class="next"></div>
				<div class="back"></div>
				không có ứng dụng nào!
			</div>
		</div>
		
		<div class="friends-list-info">
			<div class="title-info">Danh sách bạn bè</div>
			<ul>
				<?php foreach($this->friendList as $key=>$value){?>
				<li>
					<img alt="" src="<?php echo $linkImg45.$value['img_avatar']?>">
					<div><a href="#"><?php echo $value['name_friend']?></a></div>
				</li>
				<?php } ?>
				
			</ul>
		</div>
		<div class="bottom-info"></div>
	</div>
	

	<?php echo $this->render('index/categories/index.phtml')?>
</div>

